package com.buer.storage.dao;

import com.buer.storage.dto.CarDto;
import com.buer.storage.dto.CarStockDto;
import com.buer.storage.dto.SelectCarNumDto;
import com.buer.storage.entity.*;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface CarDao {
    //增加车辆信息
    int insertCar(Car car);

    //删除车辆信息
    int deleteCarById(Integer carId);

    //修改车辆信息
    int updateCarById(Car car);

    //查询所有信息
    List<Car> getCar(Map<String, Object> map);

    List<CarDto> selectCarAll();

    List<CarDto> selectCarByName(String carNumber);

    int insertCarprod(Carprod carprod);

    CarStockDto[] selectCarStockById(Integer stockId);

    int deleteStock(Integer stockId);

    int updateAddCarprod(Stock stock);

    int updateCar(Carprod carprod);

    Carprod queryCarprodByParam(CarStockDto carStockDto);

    Stock queryBuerStockByParam(CarStockDto carStockDto);

    Carprod getCarprodByCode(Map<String, Object> map);

    int save(Carprod carprod);

    int update(Carprod carprod);

    int remove(Integer carprodId);

    Carprod getCarprod(Integer carprodId);

    Stock getStockByCode(Map<String, Object> map);

    List<Carprod> selectCarprodByCarid(Integer carId);

    int deleteStockdetails(String prodName);

    Area selectWarehouseId(Integer prodArea);

    List<SelectCarNumDto> selectCarNum();

}
